package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.player.UserCard;

import java.util.Map;

public class UserCardBussiness {

    public static UserCard getUserCard(long userId) {
        return DaoHelper.getUserCardDaoImpl().getUserCard(userId);
    }

    public static Map<Long, UserCard> getUserCardMapByTime(long minTime, long maxTime) {
        return DaoHelper.getUserCardDaoImpl().getUserCardMapByTime(minTime, maxTime);
    }

    public static boolean addUserCard(UserCard userCard) {
        return DaoHelper.getUserCardDaoImpl().add(userCard);
    }

    public static boolean updateUserCard(UserCard userCard) {
        return DaoHelper.getUserCardDaoImpl().update(userCard);
    }
}
